<?php
$categorys = array();
$topCategory = $common->getHash(DB_TAG_SYSTEM, 'SELECT id, name FROM info_class WHERE parentid = 0 ORDER BY sorts');
foreach($topCategory as $topid=>$name){
	$categorys[$topid] = $common->getHash(DB_TAG_SYSTEM, "SELECT id, name FROM info_class WHERE parentid='$topid' ORDER BY sorts");
}

?>
